//
//	MCActionDetailListAction.swift
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport

import Foundation 
import ObjectMapper


class MCActionDetailListAction : NSObject, NSCoding, Mappable{

	var actionId : Int?
	var backUrl : String?
	var bottomUrl : String?
	var createTime : String?
	var createUser : Int?
	var frontUrl : String?
	var id : Int?
	var isDeleted : Int?
	var leftUrl : String?
	var muscleUrl1 : String?
	var muscleUrl2 : String?
	var muscleUrl3 : String?
	var otherUrl1 : String?
	var otherUrl2 : String?
	var rightUrl : String?
	var sort : Int?
	var stereogramUrl : String?
	var symmetryUrl : String?
	var type : Int?
	var updateTime : String?
	var updateUser : Int?
	var version : Int?
	var verticalUrl : String?


	class func newInstance(map: Map) -> Mappable?{
		return MCActionDetailListAction()
	}
	required init?(map: Map){}
	private override init(){}

	func mapping(map: Map)
	{
		actionId <- map["actionId"]
		backUrl <- map["backUrl"]
		bottomUrl <- map["bottomUrl"]
		createTime <- map["createTime"]
		createUser <- map["createUser"]
		frontUrl <- map["frontUrl"]
		id <- map["id"]
		isDeleted <- map["isDeleted"]
		leftUrl <- map["leftUrl"]
		muscleUrl1 <- map["muscleUrl1"]
		muscleUrl2 <- map["muscleUrl2"]
		muscleUrl3 <- map["muscleUrl3"]
		otherUrl1 <- map["otherUrl1"]
		otherUrl2 <- map["otherUrl2"]
		rightUrl <- map["rightUrl"]
		sort <- map["sort"]
		stereogramUrl <- map["stereogramUrl"]
		symmetryUrl <- map["symmetryUrl"]
		type <- map["type"]
		updateTime <- map["updateTime"]
		updateUser <- map["updateUser"]
		version <- map["version"]
		verticalUrl <- map["verticalUrl"]
		
	}

    /**
    * NSCoding required initializer.
    * Fills the data from the passed decoder
    */
    @objc required init(coder aDecoder: NSCoder)
	{
         actionId = aDecoder.decodeObject(forKey: "actionId") as? Int
         backUrl = aDecoder.decodeObject(forKey: "backUrl") as? String
         bottomUrl = aDecoder.decodeObject(forKey: "bottomUrl") as? String
         createTime = aDecoder.decodeObject(forKey: "createTime") as? String
         createUser = aDecoder.decodeObject(forKey: "createUser") as? Int
         frontUrl = aDecoder.decodeObject(forKey: "frontUrl") as? String
         id = aDecoder.decodeObject(forKey: "id") as? Int
         isDeleted = aDecoder.decodeObject(forKey: "isDeleted") as? Int
         leftUrl = aDecoder.decodeObject(forKey: "leftUrl") as? String
         muscleUrl1 = aDecoder.decodeObject(forKey: "muscleUrl1") as? String
         muscleUrl2 = aDecoder.decodeObject(forKey: "muscleUrl2") as? String
         muscleUrl3 = aDecoder.decodeObject(forKey: "muscleUrl3") as? String
         otherUrl1 = aDecoder.decodeObject(forKey: "otherUrl1") as? String
         otherUrl2 = aDecoder.decodeObject(forKey: "otherUrl2") as? String
         rightUrl = aDecoder.decodeObject(forKey: "rightUrl") as? String
         sort = aDecoder.decodeObject(forKey: "sort") as? Int
         stereogramUrl = aDecoder.decodeObject(forKey: "stereogramUrl") as? String
         symmetryUrl = aDecoder.decodeObject(forKey: "symmetryUrl") as? String
         type = aDecoder.decodeObject(forKey: "type") as? Int
         updateTime = aDecoder.decodeObject(forKey: "updateTime") as? String
         updateUser = aDecoder.decodeObject(forKey: "updateUser") as? Int
         version = aDecoder.decodeObject(forKey: "version") as? Int
         verticalUrl = aDecoder.decodeObject(forKey: "verticalUrl") as? String

	}

    /**
    * NSCoding required method.
    * Encodes mode properties into the decoder
    */
    @objc func encode(with aCoder: NSCoder)
	{
		if actionId != nil{
			aCoder.encode(actionId, forKey: "actionId")
		}
		if backUrl != nil{
			aCoder.encode(backUrl, forKey: "backUrl")
		}
		if bottomUrl != nil{
			aCoder.encode(bottomUrl, forKey: "bottomUrl")
		}
		if createTime != nil{
			aCoder.encode(createTime, forKey: "createTime")
		}
		if createUser != nil{
			aCoder.encode(createUser, forKey: "createUser")
		}
		if frontUrl != nil{
			aCoder.encode(frontUrl, forKey: "frontUrl")
		}
		if id != nil{
			aCoder.encode(id, forKey: "id")
		}
		if isDeleted != nil{
			aCoder.encode(isDeleted, forKey: "isDeleted")
		}
		if leftUrl != nil{
			aCoder.encode(leftUrl, forKey: "leftUrl")
		}
		if muscleUrl1 != nil{
			aCoder.encode(muscleUrl1, forKey: "muscleUrl1")
		}
		if muscleUrl2 != nil{
			aCoder.encode(muscleUrl2, forKey: "muscleUrl2")
		}
		if muscleUrl3 != nil{
			aCoder.encode(muscleUrl3, forKey: "muscleUrl3")
		}
		if otherUrl1 != nil{
			aCoder.encode(otherUrl1, forKey: "otherUrl1")
		}
		if otherUrl2 != nil{
			aCoder.encode(otherUrl2, forKey: "otherUrl2")
		}
		if rightUrl != nil{
			aCoder.encode(rightUrl, forKey: "rightUrl")
		}
		if sort != nil{
			aCoder.encode(sort, forKey: "sort")
		}
		if stereogramUrl != nil{
			aCoder.encode(stereogramUrl, forKey: "stereogramUrl")
		}
		if symmetryUrl != nil{
			aCoder.encode(symmetryUrl, forKey: "symmetryUrl")
		}
		if type != nil{
			aCoder.encode(type, forKey: "type")
		}
		if updateTime != nil{
			aCoder.encode(updateTime, forKey: "updateTime")
		}
		if updateUser != nil{
			aCoder.encode(updateUser, forKey: "updateUser")
		}
		if version != nil{
			aCoder.encode(version, forKey: "version")
		}
		if verticalUrl != nil{
			aCoder.encode(verticalUrl, forKey: "verticalUrl")
		}

	}

}